import { ref } from 'vue'

import { backToMain } from '@/libs/common'
import { curHomeTarbarKey } from '@/pages/main/components/tab-bar/data'

const showGuideQuizMask = ref(false)

export { showGuideQuizMask }

/**
 * 前往玩法
 */
const go = () => {
  curHomeTarbarKey.value = 'quiz'
  showGuideQuizMask.value = false
  backToMain()
}

export { go }
